import { defineStore } from "pinia";
import { ref } from "vue";
import { fetchPermissionsAPI } from "@/api/permissions/menuListApi/menuListApi.ts";

const useMenuListStore = defineStore("menuListStore", () => {
  const permissionsList = ref([]);
  const fetchPermissions = async () => {
    const { data } = await fetchPermissionsAPI();
    permissionsList.value=data
  };
  return {
    permissionsList,
    fetchPermissions,
  };
});

export default useMenuListStore;
